class UserRepresenter
  def initialize(user)
    @user = user
  end

  def json_user_info
    { id: user.id,
      username: user.username,
      full_name: user.full_name,
      email: user.email,
      school: user.school,
      major: user.major,
      avatar: user.avatar,
      favourite: user.favourite,
      desc: user.desc,
      gender: user.gender }
  end

  private

  attr_reader :user
end